FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})


FIND_PACKAGE(PythonLibs)
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/bindings)

set(SWIG_MODULE_biosignal_EXTRA_DEPS
${CMAKE_SOURCE_DIR}/bindings/biosignal_common.i)

SET(CMAKE_SWIG_FLAGS "")

SET_SOURCE_FILES_PROPERTIES(biosignal.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(biosignal.i PROPERTIES SWIG_FLAGS "-includeall")
SWIG_ADD_MODULE(biosignal python biosignal.i )
SWIG_LINK_LIBRARIES(biosignal ${PYTHON_LIBRARIES} biosignal) 


INCLUDE(UsePythonTest)
ADD_PYTHON_TEST(pythontest1 pythontest1.py)
